import React from 'react';
import { useTranslation } from 'react-i18next';

// Footer组件属性
interface FooterProps {
  projectName: string;
}

const Footer: React.FC<FooterProps> = ({ projectName }) => {
  const { t } = useTranslation();
  
  return (
    <footer className="layout-footer">
      <div className="footer-content">
        <p>© {new Date().getFullYear()} {t(projectName)} - 版权所有</p>
      </div>
    </footer>
  );
};

export default Footer;